package _3ChapterThree._1SelfEncapsulateField.oldObject;

public class IntRange {
    private int _low;
    private int _high;

    public IntRange(int _low, int _high) {
        this._high = _high;
        this._low = _low;
    }

    public boolean includes(int arg) {
        return arg >= _low && arg <= _high;
    }

    public void grow(int factor) {
        _high = _high * factor;
    }

    public int get_low() {
        return _low;
    }

    public void set_low(int _low) {
        this._low = _low;
    }

    public int get_high() {
        return _high;
    }

    public void set_high(int _high) {
        this._high = _high;
    }
}
